package cn.psvmc.cxzapi.model.store;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 账户记录表
 * @Author auto
 * @Date 2024-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_account_record")
public class TAccountRecord implements Serializable {

    //账户记录id
    @TableId(value = "arid", type = IdType.AUTO)
    private Integer arid;

    //类型（1充值 2提现）
    @TableField("type")
    private Integer type;

    //交易金额
    @TableField("amount")
    private Double amount;

    //支付宝账号
    @TableField("alipay_account")
    private String alipayAccount;

    //收款人姓名
    @TableField("payee_name")
    private String payeeName;

    //流水号
    @TableField("transaction_id")
    private String transactionId;

    //预下单请求生成的二维码码串，有效时间2小时/支付宝转账订单号
    @TableField("qr_code")
    private String qrCode;

    //状态（0待提现1已提现）
    @TableField(value = "status")
    private Integer status;

    //账户id
    @TableField("account_id")
    private Integer accountId;

    //账户类型（1租金账户2质保金账户）
    @TableField("account_type")
    private Integer accountType;

    //商家id
    @TableField("storeid")
    private Integer storeid;

    //备注
    @TableField("comm")
    private String comm;

    //支付时间
    @TableField("pay_date")
    private String payDate;

    //创建人id
    @TableField(value = "createid", fill = FieldFill.INSERT)
    private Integer createid;

    //创建时间
    @TableField(value = "createtime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    //余额
    @TableField(exist = false)
    private Double balance;


}
